package m_suanfa.erchashu;

import org.aspectj.weaver.patterns.ThisOrTargetAnnotationPointcut;

/**
 * 定义一个节点类，使节点与二叉树操作分离
 * @author Y
 *
 */
public class Node {
	
	int value;
	Node leftChild;
	Node rightChild;
	
	Node(int value){
		this.value = value;
	}
	
	public void display(){
		System.out.println(this.value + "\t");
	}

	@Override
	public String toString() {
		return String.valueOf(value);
	}
	
}
